package com.liohi.tools;

import com.liohi.AllEunm.RoleCode;

public class RoleCodeRes {
    public static int reslveRoleCode(String role) {
        switch (role) {
            case "管理员":
                return RoleCode.admin.getCode();
            case "教师":
                return RoleCode.teacher.getCode();
            case "用户":
                return RoleCode.user.getCode();
        }
        return -1;
    }
}
